import { Controller, Post, Body } from '@nestjs/common';
import { DeepSeekService } from './deepseek.service';
import type { DeepSeekInterpretationRequest, DeepSeekInterpretationResult } from './deepseek.types';

@Controller('deepseek')
export class DeepSeekController {
  constructor(private readonly deepSeekService: DeepSeekService) {}

  @Post('interpret')
  async interpretGua(
    @Body() interpretationRequest: DeepSeekInterpretationRequest
  ): Promise<DeepSeekInterpretationResult> {
    return this.deepSeekService.interpretGua(interpretationRequest);
  }
}